module ICarry {

    export class ICarryApplication extends PrismBreak.PbApp {

        public ICarryContext: ICarryContext;
        public Pannello: PannelloModule.Pannello;

        constructor(configPath: string, hostEl: HTMLElement) {

            //Framework initializing
            super(configPath, hostEl);

            super.Initialize();
            this.ICarryContext = new ICarryContext(this);

            $(document).ready(() => {

                var options: PannelloModule.PannelloOptions = {
                    handlerSelector: ".pannello-handler",
                    panelElSelector: ".pannello",
                    appSelector: "#application",
                    percentagePanelWidth: 60,
                    animationsMs: 300,
                    opacityAnimation: true,
                    percentageDragToAutoClose: 20,
                    percentageDragToAutoOpen: 50,
                    behavior: PannelloModule.PanelBehavior.Overlay,
                    propagateClickBehindHandler: true,
                    debugMode: true                   
                }

                this.Pannello = new PannelloModule.Pannello(options);
            });
        }


    }
}